/* 
 * File:   SBSLog.h
 * Author: mauro
 *
 * Created on 9 de octubre de 2014, 16:36
 */

#ifndef SBSLOG_H
#define	SBSLOG_H

#include <fstream> 
#include <ctime> 
#include <stdio.h>
#include <string>
#include <iostream>
#include "../Define/DefaultValues.h"

using namespace std;

class SBSLog {

private:
    
    ofstream myLog;
    char* myTimeStamp;
    int myLogMode;
    SBSLog(int lm);
    
    
public:
    //SBSLog(int lm);
    static SBSLog& getInstance(int mlm);
    virtual ~SBSLog();
    char* getMyTimeStamp();
    int getMyLogMode();
    void setMyTimeStamp ();
    void setMyLogMode();
    bool writeInLog (char logmode, string linetowrite);
    void closeMyLogFile();
    //logMode=0 -> TODO; logMode=1 -> Warnings y Errores; logMode=2 -> Errores
};

#endif	/* SBSLOG_H */

